//vue
new Vue({
    el: '#app',
    data: function () {
        return {
            opers: [],
            formData: {
                createTime: '',
                docContent: '',
                docName: '',
                expiredTime: '',
                id: '',
                idcId: '',
                insType: '',
                orderStatus: '',
                orderType: '',
                updateTime: '',
            },
        }
    },
    methods: {
        async initOpers() {
            this.opers = await baseOperCompanyApi.selectList();
        },
        async submitForm() {
            this.$validator.validateAll().then(async (res) => {
                if (res) {
                    var result = await insWorkOrderApi.update(this.formData);
                    if (result.code == 200) {
                        await rxPrompt.msg('修改成功')
                        forward('/command-manage/admin_filenotify')
                    } else {
                        await rxPrompt.msg('修改失败')
                        return;
                    }
                } else {
                    rxPrompt.msg("输入存在错误！");
                }
            })
        },
    },
    watch: {},
    mounted: async function () {
        await this.initOpers();
        this.formData = forward.getData()
    },

});
